<?php

namespace App\Http\Controllers\Api\v1;

use App\Http\Controllers\Controller;
use App\Utils\AppResult;
use Fukuball\Jieba\Finalseg;
use Fukuball\Jieba\Jieba;

/**
 * 示例
 * Author:panda
 * Email:joeyoung0314@qq.com
 * Class PassportController
 * @package App\Http\Controllers\Api\v1
 */
class DemoController extends Controller
{
    // 日志模块名称
    const LOG_MODULE = 'v1/DemoController';

    /**
     * 示例
     * @return \Illuminate\Http\JsonResponse
     */
    public function demo()
    {
        return AppResult::response200();
    }

    public function fenci()
    {
        Jieba::init();
        Finalseg::init();
        dd(Jieba::cut('我是少先队员'));// 我 是 少先队员
    }
}
